package com.xmhmyh.generalframework.project.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * <p>
 *
 * </p>
 *
 * @author yuding
 * @since 2020-06-28
 */
@TableName("sys_oper_log")
public class OperLog implements Serializable {

    private static final long serialVersionUID = -7090312783699994242L;
    /**
     * 日志主键
     */
    private Long id;

    /**
     * 模块code
     */
    private Integer moduleCode;

    /**
     * 模块标题
     */
    private String moduleStr;

    private Integer businessCode;

    /**
     * 业务类型
     */
    private String businessStr;

    /**
     * 方法名称
     */
    private String method;

    /**
     * 请求方式
     */
    private String requestMethod;

    /**
     * 操作类别
     */
    private Integer operatorSource;
    private String operatorSourceStr;

    /**
     * 操作userId
     */
    private Long operUserId;

    /**
     * 操作人员
     */
    private String operName;

    /**
     * 请求URL
     */
    private String operUrl;

    /**
     * 主机地址
     */
    private String operIp;

    /**
     * 请求参数
     */
    private String operParam;

    /**
     * 返回参数
     */
    private String jsonResult;

    /**
     * 操作状态（0正常 1异常）
     */
    private Integer status;

    /**
     * 错误消息
     */
    private String errorMsg;

    /**
     * 操作时间
     */
    private LocalDateTime operTime;

    /**
     * 是否可用
     */
    private Integer enabled;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getModuleCode() {
        return moduleCode;
    }

    public void setModuleCode(Integer moduleCode) {
        this.moduleCode = moduleCode;
    }

    public String getModuleStr() {
        return moduleStr;
    }

    public void setModuleStr(String moduleStr) {
        this.moduleStr = moduleStr;
    }

    public Integer getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(Integer businessCode) {
        this.businessCode = businessCode;
    }

    public String getBusinessStr() {
        return businessStr;
    }

    public void setBusinessStr(String businessStr) {
        this.businessStr = businessStr;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public Integer getOperatorSource() {
        return operatorSource;
    }

    public void setOperatorSource(Integer operatorSource) {
        this.operatorSource = operatorSource;
    }

    public Long getOperUserId() {
        return operUserId;
    }

    public void setOperUserId(Long operUserId) {
        this.operUserId = operUserId;
    }

    public String getOperName() {
        return operName;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }

    public String getOperUrl() {
        return operUrl;
    }

    public void setOperUrl(String operUrl) {
        this.operUrl = operUrl;
    }

    public String getOperIp() {
        return operIp;
    }

    public void setOperIp(String operIp) {
        this.operIp = operIp;
    }

    public String getOperParam() {
        return operParam;
    }

    public void setOperParam(String operParam) {
        this.operParam = operParam;
    }

    public String getJsonResult() {
        return jsonResult;
    }

    public void setJsonResult(String jsonResult) {
        this.jsonResult = jsonResult;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public LocalDateTime getOperTime() {
        return operTime;
    }

    public void setOperTime(LocalDateTime operTime) {
        this.operTime = operTime;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public String getOperatorSourceStr() {
        return operatorSourceStr;
    }

    public void setOperatorSourceStr(String operatorSourceStr) {
        this.operatorSourceStr = operatorSourceStr;
    }

    @Override
    public String toString() {
        return "OperLog{" +
                "id=" + id +
                ", moduleCode=" + moduleCode +
                ", moduleStr=" + moduleStr +
                ", businessCode=" + businessCode +
                ", businessStr=" + businessStr +
                ", method=" + method +
                ", requestMethod=" + requestMethod +
                ", operatorSource=" + operatorSource +
                ", operUserId=" + operUserId +
                ", operName=" + operName +
                ", operUrl=" + operUrl +
                ", operIp=" + operIp +
                ", operParam=" + operParam +
                ", jsonResult=" + jsonResult +
                ", status=" + status +
                ", errorMsg=" + errorMsg +
                ", operTime=" + operTime +
                ", enabled=" + enabled +
                "}";
    }
}
